package com.service.impl;

import com.bean.District;
import com.dao.DistrictMapper;
import com.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class DistrictServiceImpl implements DistrictService {

    @Autowired
    private DistrictMapper mapper;

    @Override
    @Transactional
    public int save(District district) {
        return 0;
    }

    @Override
    @Transactional
    public int remove(District district) {
        return 0;
    }

    @Override
    @Transactional
    public int modify(District district) {
        return 0;
    }

    @Override
    public List<District> find(District district) {
        return null;
    }

    @Override
    public int count(Map<String, Object> map) {
        return 0;
    }

    @Override
    public List<District> query(Map<String, Object> map) {
        return mapper.selectByPage(map);
    }
}
